package com.atguigu.scala.chapter_05_function

import scala.util.control.Breaks

object Scala_04{
  def main(args: Array[String]): Unit = {
    Breaks.breakable{
      for (i <- 1 to 5){
        if (i==3){
          Breaks.break
        }
        println(s"i=$i")

      }
    }
  }
}
